package com.mjlf.spring.service;

import com.mjlf.spring.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName UserService
 * @auther mjlf
 * @Date 2019/6/27 10:34
 * @Description TODO
 */
@Service
public abstract class UserService implements UserDao {

//    @Resource(name = "com.mjlf.spring.service.userservicetwo_class")
//    private UserServiceTwo userServiceTwo;
    private String name;

    @Override
    public int count() {
        UserServiceTwo userServiceTwo = getUserServiceTwo();
        System.out.println(userServiceTwo.hashCode());
        userServiceTwo.count1();
        return 0;
    }

    public abstract UserServiceTwo getUserServiceTwo();
}
